package com.gusha.model;

import java.io.Serializable;
import javax.persistence.*;
import org.hibernate.annotations.DynamicInsert;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Created：2018-11-06 14:11:32
 * @Author LightSound的代码生成器
 * @Description:SysArea实体类
 */
@Entity
@Table(name="sys_area")
@NamedQuery(name="SysArea.findAll", query="SELECT s FROM SysArea s")
@DynamicInsert
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysArea implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)    
    //城市编码
    @Column(name="code")
    private String code;
    
    //城市父编码
    @Column(name="p_code")
    private String pCode;
    
    //城市名称
    @Column(name="city_name")
    private String cityName;
    
    //创建时间
    @Column(name="create_time")
    private String createTime;
    
    //修改时间
    @Column(name="update_time")
    private String updateTime;
    
    //全称
    @Column(name="full_name")
    private String fullName;
    
    //车牌简称
    @Column(name="car_name")
    private String carName;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getpCode() {
		return pCode;
	}

	public void setpCode(String pCode) {
		this.pCode = pCode;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getCarName() {
		return carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}



}
